import React from 'react'

class Todolist extends React.Component{
    handleClick=()=>{
        this.props.deleteItem(this.props.index)
    }
            

    render(){
      
        return(
            <div>
            
              <li onClick={this.handleClick}>{this.props.content} </li>
            </div>
        )
    }
}


export default Todolist